<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Login User</title>
    </h:head>
    <body>
        <f:view>
        <h:form>
            <center>

                <h1><b>Login</b></h1>
                <table width="412" height="141" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <th><span>Username</span></th>
                        <td><p:inputText id="email" value="#{customerBean.cu.email}" required="true" requiredMessage="User name is not null"/>
                            <h:messages for="email" style="font-size: smaller;font-weight: normal;color: red"/>

                        </td>

                    </tr>
                    <tr>
                        <th><span>Password</span></th>
                        <td><p:password feedback="" minLength="6" id="password" value="#{customerBean.cu.password}" required="true" requiredMessage="Password is not null"/>
                            <h:messages for="password" style="font-size: smaller;font-weight: normal;color: red"/>
                            <h:outputText id="display" value="#{customerBean.msg3}" style="font-size: smaller;font-weight: normal;color: red"/>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>  <h:commandButton value="Login" action="#{customerBean.loginUser}" />


                        </td>
                        <td> <h:commandButton action="Register.xhtml" type="image" image="../resources/images/login/icon_register.gif"/>
                        </td>
                    </tr>

                </table>


            </center>
        </h:form>
        </f:view>
    </body>
</html>
